import React from 'react';
import { SelectBox, Form } from 'choerodon-ui/pro';
import { observer } from 'mobx-react-lite';
import { NewTips } from '@choerodon/components';

interface Iprops{
  count:number,
  valueDs:any
}

const ValuesModel:React.FC<Iprops> = observer(({ valueDs, count }:Iprops) => {
  const { Option } = SelectBox;
  return (
    <div>
      <p>
        检测到应用版本或values内容发生变化，需要重新确认此次生效的「副本数量」策略：
      </p>
      <Form dataSet={valueDs}>
        <Form.Item>
          <SelectBox
            name="replicasStrategy"
            label="副本数量来源"
          >
            <Option value=" values">当前Values</Option>
            <Option value="replicas">
              Pod详情界面副本数量：
              {count}
            </Option>
          </SelectBox>
        </Form.Item>
      </Form>
    </div>
  );
});
export default ValuesModel;
